<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Grades</title>
</head>
<body>
<h1>Grades</h1>
<table>
    <thead>
    <tr>
        <th>ID</th>
        <th>Student ID</th>
        <th>Course Name</th>
        <th>Grade</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="grade : ${grades}">
        <td th:text="${grade.id}"></td>
        <td th:text="${grade.studentId}"></td>
        <td th:text="${grade.courseName}"></td>
        <td th:text="${grade.grade}"></td>
    </tr>
    </tbody>
</table>
<a href="/grades/new">Add New Grade</a>
</body>
</html>
